layui.use(['layer','element','jquery','tree'],function(){
	var layer=layui.layer,
	element=layui.element,
	$=layui.jquery;
	jq=layui.jquery;
	
	jq(".left_menu_li .layui-nav-item .layui-nav-child dl dd").click(function(){
		debugger;
		jq("#iframe-mask").show();
		//遮罩层消失
		jq("#admin-frame").load(function(){
			jq("#iframe-mask").fadeOut(100);
		});
	});
	layer.open({
		title:"您有新的确认作业！",
		anim: 2,
		time:2000,
		type:1,
		offset: 'rb',
		shade: 0, //不显示遮罩
		content:'<div style="min-height:60px;padding: 20px 60px;">有效台账转坏账通知！</div>'
	});
	   $('.admin-side-full').on('click', function () {
	        var docElm = document.documentElement;
	        //W3C  
	        if (docElm.requestFullscreen) {
	            docElm.requestFullscreen();
	        }
	        //FireFox  
	        else if (docElm.mozRequestFullScreen) {
	            docElm.mozRequestFullScreen();
	        }
	        //Chrome等  
	        else if (docElm.webkitRequestFullScreen) {
	            docElm.webkitRequestFullScreen();
	        }
	        //IE11
	        else if (elem.msRequestFullscreen) {
	            elem.msRequestFullscreen();
	        }
	        layer.msg('按Esc即可退出全屏');
	    });
	   $('.admin-side-toggle').on('click', function () {
	        var sideWidth = $('#admin-side').width();
	        if (sideWidth === 200) {
	            $('#admin-body').animate({
	                left: '0'
	            }); //admin-footer
	            $('#admin-footer').animate({
	                left: '0'
	            });
	            $('#admin-side').animate({
	                width: '0'
	            });
	        } else {
	            $('#admin-body').animate({
	                left: '200px'
	            });
	            $('#admin-footer').animate({
	                left: '200px'
	            });
	            $('#admin-side').animate({
	                width: '200px'
	            });
	        }
	    });
});
